<T:ViewBase x:Class="WPFExcelReport.TTPUID02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUTUID:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUTUID}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUAENDZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUAENDZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUAENDBEN:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUAENDBEN}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUAENDDAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUAENDDAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUNEUBEN:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUNEUBEN}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUNEUDAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUNEUDAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUSTAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUSTAKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPUTYP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPUTYP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPULO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPULO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=TPULB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwTPUID.TPULB}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsTPUID,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwTPUID}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwTPUID, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="TPUMANDANT"
                                    Binding="{Binding Path=TPUMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUTUID"
                                    Binding="{Binding Path=TPUTUID, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUTUID}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUAENDZL"
                                    Binding="{Binding Path=TPUAENDZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUAENDZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUAENDBEN"
                                    Binding="{Binding Path=TPUAENDBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUAENDBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUAENDDAT"
                                    Binding="{Binding Path=TPUAENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUAENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUNEUBEN"
                                    Binding="{Binding Path=TPUNEUBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUNEUBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUNEUDAT"
                                    Binding="{Binding Path=TPUNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUNEUDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUSTAKZ"
                                    Binding="{Binding Path=TPUSTAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUSTAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUTYP"
                                    Binding="{Binding Path=TPUTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPULO"
                                    Binding="{Binding Path=TPULO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPULO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPULB"
                                    Binding="{Binding Path=TPULB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPULB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPULP"
                                    Binding="{Binding Path=TPULP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPULP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUHLP"
                                    Binding="{Binding Path=TPUHLP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUHLP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUZLO"
                                    Binding="{Binding Path=TPUZLO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUZLO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUZLB"
                                    Binding="{Binding Path=TPUZLB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUZLB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUZLP"
                                    Binding="{Binding Path=TPUZLP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUZLP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUHEIGHT"
                                    Binding="{Binding Path=TPUHEIGHT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUHEIGHT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUWEIGHT"
                                    Binding="{Binding Path=TPUWEIGHT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUWEIGHT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUMVDATE"
                                    Binding="{Binding Path=TPUMVDATE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUMVDATE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUCOM"
                                    Binding="{Binding Path=TPUCOM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUCOM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUMVTIME"
                                    Binding="{Binding Path=TPUMVTIME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUMVTIME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUAENDTIME"
                                    Binding="{Binding Path=TPUAENDTIME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUAENDTIME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUDIVARTKZ"
                                    Binding="{Binding Path=TPUDIVARTKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUDIVARTKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUKUNDNR"
                                    Binding="{Binding Path=TPUKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUWERK"
                                    Binding="{Binding Path=TPUWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUABT"
                                    Binding="{Binding Path=TPUABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUWAKZ"
                                    Binding="{Binding Path=TPUWAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUWAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUART"
                                    Binding="{Binding Path=TPUART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUVAR"
                                    Binding="{Binding Path=TPUVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUDPART"
                                    Binding="{Binding Path=TPUDPART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUDPART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUSTKNR"
                                    Binding="{Binding Path=TPUSTKNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUSTKNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUNETGEW"
                                    Binding="{Binding Path=TPUNETGEW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUNETGEW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPULGMTR"
                                    Binding="{Binding Path=TPULGMTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPULGMTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUAUFKRS"
                                    Binding="{Binding Path=TPUAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUAUFLFD"
                                    Binding="{Binding Path=TPUAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUAUFPOS"
                                    Binding="{Binding Path=TPUAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUAUFPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUKZLEER"
                                    Binding="{Binding Path=TPUKZLEER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUKZLEER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPULWDATE"
                                    Binding="{Binding Path=TPULWDATE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPULWDATE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPULWTIME"
                                    Binding="{Binding Path=TPULWTIME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPULWTIME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUEWLFDNR"
                                    Binding="{Binding Path=TPUEWLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUEWLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPURWLFDNR"
                                    Binding="{Binding Path=TPURWLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPURWLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUBSTIPKT"
                                    Binding="{Binding Path=TPUBSTIPKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUBSTIPKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="TPUFILLER"
                                    Binding="{Binding Path=TPUFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=TPUFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
